<?php

// mbilling/BillingBundle/Entity/ordersVpsTarifs.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class ordersVpsTarifs
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=45)
     */
    protected $name;
    
    /**
     * @ORM\Column(type="float")
     */
    protected $cost;
    
    /**
     * @ORM\Column(type="integer")
     */
    protected $cpu;
     
    /**
     * @ORM\Column(type="float")
     */
    protected $ram;
    
    /**
     * @ORM\Column(type="float")
     */
    protected $hdd;

    /**
     * @ORM\Column(type="integer")
     */
    protected $ded_ip_count;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $dns_access;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_active;

    /**
     * @ORM\Column(type="float")
     */
    protected $add_ip_cost;

    /**
     * @ORM\Column(type="float")
     */
    protected $add_hdd_cost;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setCost($cost)
    {
        $this->cost = $cost;
    }
    public function getCost()
    {
        return $this->cost;
    }
    
    public function setCpu($cpu)
    {
        $this->cpu = $cpu;
    }
    public function getCpu()
    {
        return $this->cpu;
    }

    public function setRam($ram)
    {
        $this->ram = $ram;
    }
    public function getRam()
    {
        return $this->ram;
    }

    public function setHdd($hdd)
    {
        $this->hdd = $hdd;
    }
    public function getHdd()
    {
        return $this->hdd;
    }

    public function setDedIpCount($ded_ip_count)
    {
        $this->ded_ip_count = $ded_ip_count;
    }
    public function getDedIpCount()
    {
        return $this->ded_ip_count;
    }
    
    public function setDnsAccess($dns_access)
    {
        $this->dns_access = $dns_access;
    }
    public function getDnsAccess()
    {
        return $this->dns_access;
    }

    public function setIsActive($is_active)
    {
        $this->is_active = $is_active;
    }
    public function getIsActive()
    {
        return $this->is_active;
    }

    public function setAddIpCost($add_ip_cost)
    {
        $this->add_ip_cost = $add_ip_cost;
    }
    public function getAddIpCost()
    {
        return $this->add_ip_cost;
    }

    public function setAddHddCost($add_hdd_cost)
    {
        $this->add_hdd_cost = $add_hdd_cost;
    }
    public function getAddHddCost()
    {
        return $this->add_hdd_cost;
    }
    
    public function initDefaultEntity()
    {
        $this->setName('new');
        $this->setCost('65.6');
        $this->setCpu('2500');
        $this->setRam('128');
        $this->setHdd('50');
        $this->setDedIpCount('2');
        $this->setDnsAccess('0');
        $this->setAddIpCost('123');
        $this->setAddHddCost('321');
        return $this;
    }
}
?>
